import request from '@/utils/request.js'
import apis from '@/utils/api'
/**
 * @param {Object} params
 * 订单
 */
export function getOrderList(params) {
	  return request.globalRequest(apis.getOrderList, 'GET', params)
}
export function orderStatus(params) {
	  return request.globalRequest(apis.orderStatus, 'GET', params)
}
export function saveOrder(params) {
	if (params.id) {
	  return request.globalRequest(apis.editOrder, 'POST', params)
	} else {
	  return request.globalRequest(apis.addOrder, 'POST', params)
	}
}

export default {
	saveOrder,
	orderStatus,
	getOrderList
}